package com.huamao.zh.constants;

/**
 * 功能说明：积分类型 Author：spring Date：2017/11/20 11:19
 */
public enum ScoreFreezeType {

	// 积分类型
	// 1商城消费获取 2线下商家消费获得 3购买库存积分获得 4下线消费获得
	// 5下线营业额获得 6特别奖励 7用户升级奖励 8下线升级奖励 9升级代理
	// 10下线升级代理奖励 11分红获得 13扣除商城商家营业额购买库存积分获得
	// 14后台手动增加 31转入到正式积分账户 32后台手动减少

	Online_consumption(1, "商城消费获取"), Offline_consumption(2, "线下商家消费获得"), Buy_score(3,
			"购买库存积分获得"), Subordinate_consumption(4, "下线消费获得"), Subordinate_turnover(5, "下线营业额获得"), Special_awards(6,
					"特别奖励"), User_upgrade(7, "用户升级奖励"), Subordinate_upgrade(8, "下线升级奖励"), User_upgrade_agent(9,
							"升级代理"), Subordinate_upgrade_agent(10, "下线升级代理奖励"), Dividend(11,
									"分红获得"), Freeze_score_turn_in(12, "待发积分账户转入"), Buy_score_for_order(13,
											"扣除商城商家营业额购买库存积分获得"), Houtai_add(14, "后台手动增加"), Houtai_subtract(32,
													"后台手动减少"), Turn_2_normal(31, "转入到正式积分账户");

	/**
	 * 功能编码
	 */
	private Integer code;

	/**
	 * 功能名称
	 */
	private String name;

	ScoreFreezeType(Integer code, String name) {
		this.code = code;
		this.name = name;
	}

	public Integer getCode() {
		return code;
	}

	public ScoreFreezeType setCode(Integer code) {
		this.code = code;
		return this;
	}

	public String getName() {
		return name;
	}

	public ScoreFreezeType setName(String name) {
		this.name = name;
		return this;
	}
}
